package com.bjsdzk.collector.entity;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

public class CommandQueueEle implements Serializable {
	
	@Setter
	@Getter
	private long time;
	@Setter
	@Getter
	private String cmd;
	@Setter
	@Getter
	private boolean read;
	@Setter
	@Getter
	private String value;
	@Setter
	@Getter
	private String source ;
	@Setter
	@Getter
	private String messageId ;
	@Setter
	@Getter
	private boolean callback =false;
	@Setter
	@Getter
	private Object parseMethod ;
    @Setter
    @Getter
    private String deviceHex ;

	public CommandQueueEle(long time, String cmd, boolean read, String value) {
		super();
		this.time = time;
		this.cmd = cmd;
		this.read = read;
		this.value = value;
	}

	public CommandQueueEle(long time, String cmd, boolean read, String value, String source, String messageId) {
		this.time = time;
		this.cmd = cmd;
		this.read = read;
		this.value = value;
		this.source = source;
		this.messageId = messageId;
	}

	public CommandQueueEle() {
	}

	@Override
	public String toString() {
		return "CommandQueueEle{" +
				"time=" + time +
				", cmd='" + cmd + '\'' +
				", read=" + read +
				", value='" + value + '\'' +
				", source='" + source + '\'' +
				", messageId='" + messageId + '\'' +
				", callback=" + callback +
				", parseMethod=" + parseMethod +
				", deviceHex='" + deviceHex + '\'' +
				'}';
	}
}
